<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><title>Wildcard URLS</title>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
body {
    margin: 5px 5px 5px 5px;
    background: #ffffff;
    font-size: 1em;
    font-family: Verdana;
}
h1 {
    margin: 0px 0px 20px 0px;
}
h2 {
    font-size: 14pt;
    font-weight: bold;
}
img {
    margin: 0 auto;
    border: 0;
}
p.centered {
    text-align: center;
}
#footer {
    font-family: Arial;
    font-size: 0.8em;
    color: #777;
    text-align: center;
}
hr { color: #000000}
span.numbered { color: #f00; }
table {
    width: 60%;
    margin: 0 auto;
    border-collapse: collapse;
}
td {
  border: 1px solid #ddd;
  padding: 0.4em;
}
table thead {
    font-weight: bold;
}
table .symbol {
    text-align: center;
}
table .descr {
   font-weight: bold;
  vertical-align: top;
}

a {
  color: #002BB8;
   font-weight: bold;
   text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
a:visited {
    color: #5A3696;
}
h2 a{
  color: #000;
}

div.contents {
  background: #F9F9F9;
  border: 1px solid #aaa;
  padding: 0 1em;
}
.match {
  color: #2EBF00;
}
.nomatch {
  color: #e00;
}
--></style>
</head>
<body>

<p>Account URLs can be specified using wildcards to make them apply to certain websites. LockCrypt checks the protocol, host and file when determining whether an account matches a URL. The wildcard character <em>*</em> can be used for any one of these sections to match any URL.</p>
<h3>Syntax</h3>
<p style="padding-left: 1.5em;"><strong><span style="color: #FF0033">protocol</span>://<span style="color:#0432DB">host</span>/<span style="color:#FFB414">file</span></strong></p>
<p>Any parts which are left blank are implicit wildcards.</p>
<h3>Example Matches</h3>
<table summary="Wildcard Matches">
  <thead>
    <tr>
      <td>URL Stored in Account</td>
      <td>Matching URLs</td>
      <td>Non-Matching URLs</td>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>http://www.google.com/</td>
      <td class="match">http://www.google.com/</td>
      <td class="nomatch">http://google.com/<br />
                          http://www.google.co.za/
      </td>
    </tr>
    <tr>
      <td>http://*google.com/</td>
      <td class="match">http://www.google.com/<br />
                        http://groups.google.com/<br />
                        http://groups.google.com/group1<br />
      </td>
      <td class="nomatch">http://google.jp/
      </td>
    </tr>
    <tr>
      <td>*://mycompany/</td>
      <td class="match">gopher://mycompany/login/<br />
                        http://mycompany/search.aspx
      </td>
      <td class="nomatch">http://google.com/<br />
                          ftp://microsoft.com/
      </td>
    </tr>
    <tr>
      <td>*://*.com</td>
      <td class="match">http://google.com/<br />
                        ftp://ftp.yahoo.com
      </td>
      <td class="nomatch">http://google.ru/
      </td>
    </tr>
    <tr>
      <td>http://*.intra.google*/*login.php</td>
      <td class="match">http://google.com/login.php<br />
                        http://google.fr/admin/login.php
      </td>
      <td class="nomatch">http://intra.contractor/anything.php
      </td>
    </tr>
    <tr>
      <td>*login.php</td>
      <td class="match">http://google.com/login.php<br />
                        http://yahoo.com/login.php
      </td>
      <td class="nomatch">http://google.com/search.php
      </td>
    </tr>
  </tbody>
</table>

</body></html>
